import request from '@/utils/request'

// 查询考核信息列表
export function listAssessment(query) {
  return request({
    url: '/teacher/assessment/list',
    method: 'get',
    params: query
  })
}

// 查询考核信息详细
export function getAssessment(recordid) {
  return request({
    url: '/teacher/assessment/' + recordid,
    method: 'get'
  })
}

// 新增考核信息
export function addAssessment(data) {
  return request({
    url: '/teacher/assessment',
    method: 'post',
    data: data
  })
}

// 修改考核信息
export function updateAssessment(data) {
  return request({
    url: '/teacher/assessment',
    method: 'put',
    data: data
  })
}

// 删除考核信息
export function delAssessment(recordid) {
  return request({
    url: '/teacher/assessment/' + recordid,
    method: 'delete'
  })
}

// 导出考核信息
export function exportAssessment(query) {
  return request({
    url: '/teacher/assessment/export',
    method: 'get',
    params: query
  })
}